{extend name="base"}
{block name="title"}在线支付排行榜{/block}
{block name="head"}{/block}
{block name="body"}
<body class="mainbody">
<form>
<!--导航栏-->
<div class="location">
  <a href="javascript:history.back(-1);" class="back"><i class="iconfont icon-up"></i><span>返回上一页</span></a>
  <a href="{:url('index/home')}" class="home"><i class="iconfont icon-home"></i><span>首页</span></a>
  <i class="arrow iconfont icon-arrow-right"></i>
  <span>在线支付排行榜</span>
</div>
<!--/导航栏-->

<!--工具栏-->
<div id="floatHead" class="toolbar-wrap">
  <div class="toolbar">
    <div class="box-wrap">
      <a class="menu-btn"><i class="iconfont icon-more"></i></a>
      <div class="l-list">
        <div class="menu-list">
          <div class="rule-single-select">
            <select name="Channel" style="display:none">
              <option value="-1">===所有渠道===</option>
              {volist name="CHANNELS" id="val"}
              <option value="{$key}"{eq name="Channel" value="$key"} selected{/eq}>[{$key}]{$val.Name}</option>
              {/volist}
            </select>
          </div>
          <div class="rule-single-select">
            <select name="KindID" style="display:none">
              <option value="-1">===所有游戏===</option>
              {volist name="GAME_KIND" id="val"}
              <option value="{$key}"{eq name="KindID" value="$key"} selected{/eq}>{$val}[{$key}]</option>
              {/volist}
            </select>
          </div>
          <input type="text" class="input rule-date-input" id="time1" autocomplete="off" {literal}onclick="WdatePicker({maxDate:'#F{$dp.$D(\'time2\')}'})"{/literal} name="time1" value="{$time1<=0?'':date('Y-m-d',$time1)}" placeholder="订单起始日期" /> -
          <input type="text" class="input rule-date-input" id="time2" autocomplete="off" {literal}onclick="WdatePicker({minDate:'#F{$dp.$D(\'time1\')}', maxDate:'%y-%M-%d'})"{/literal} name="time2" value="{$time2<=0?'':date('Y-m-d',$time2)}" placeholder="订单结束日期" />
          <input type="text" class="input txt" autocomplete="off" name="search" value="{$search|default=''|htmlentities}" placeholder="UserID/GameID/昵称" />
          <input type="text" class="input" autocomplete="off" name="yqcode" value="{$yqcode|default=''|htmlentities}" placeholder="邀请码" />
          <a class="btn-search"><i class="iconfont icon-search"></i></a>
        </div>
      </div>
    </div>
  </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
<table class="ltable border-table">
  <tr>
    <th>#</th>
    <th>渠道</th>
    <th>游戏</th>
    <th>用户头像/昵称/GameID</th>
    <th>推广员</th>
    <th>房卡</th>
    <th>游戏次数</th>
    <th>充值笔数</th>
    <th>充值总额</th>
    <th>七日输赢</th>
    <th>累计输赢</th>
  </tr>
{empty name="list"}
  <tr><td colspan="11">Oh~暂无数据!</td></tr>
{else}
  {volist name="list" id="v"}
  <tr>
    <td>{$v.ROW_NUMBER}</td>
    <td>[{$v.Channel}]{$CHANNELS[$v.Channel]['Name'] ?? '--'}</td>
    <td>[{$v.KindID}]{$v.GameName}</td>
    <td  class="user-avatar" title="
游戏帐号：{$v.Accounts}&#13
真实姓名：{$v.Compellation}&#13
身份证号：{$v.PassPortID}&#13
手机号码：{$v.RegisterMobile}&#13
    性别：{switch name='$v.Sex'}{case value='0'}未知{/case}{case value='1'}男性{/case}{case value='2'}女性{/case}{/switch}&#13
注册时间：{$v.RegisterDate}&#13
注册地址：{$v.RegisterIP}&#13;
登录次数：{$v.GameLogonCount} 次&#13
最后登录时间：{$v.LastLogonDate}&#13
最后登录地址：{$v.LastLogonIP}&#13
">
      <a target="_blank" href="{:url('user.detail/index')}?UserID={$v.UserID}">
        <img src="{$v.Avatar?:'__STATIC__/houtai/images/dface.png'}" />
      </a>
      <div class="user-box">
        <h4><a target="_blank" class="at_{$v.AccountsType}" href="{:url('user.detail/index')}?UserID={$v.UserID}">{:htmlentities($v.NickName)}</a></h4>
        <i>{$v.GameID}</i>
      </div>
    </td>
    <td class="user-avatar">
      <a target="_blank" href="{:url('user.detail/index')}?UserID={$v.AUserID}">
        <img src="{$v.AAvatar?:'__STATIC__/houtai/images/dface.png'}" />
      </a>
      <div class="user-box">
        <h4><a target="_blank" class="at_{$v.AccountsType}" href="{:url('user.detail/index')}?UserID={$v.AUserID}">{$v.ACompellation}</a></h4>
        <i>{$v.AGameID}</i>
      </div>
    </td>
    <td class="tr"><a target="_blank" href="{:url('user.room.card/index')}?search={$v.GameID}">{$v.RoomCard}</a></td>
    <td class="tr"><a target="_blank" href="{:url('user.table/index')}?type=4&search={$v.GameID}">{$v.PlayCount}</a></td>
    <td class="tr"><a target="_blank" href="{:url('user.pay/index')}?search={$v.GameID}&time1={$time1<=0?'':date('Y-m-d',$time1)}&time2={$time2<=0?'':date('Y-m-d',$time2)}">{$v.PayCount}</a></td>
    <td class="tr">{$v.PayAmount}</td>
    <td class="tr{gt name='v.Socre7' value='0'} red{/gt}"><a target="_blank" href="{:url('user.game/index')}?search={$v.GameID}&time1={:date('Y-m-d', $time-6*60*60*24)}">{$v.Socre7}</a></td>
    <td class="tr{gt name='v.SocreAmount' value='0'} red{/gt}"><a target="_blank" href="{:url('user.game/index')}?search={$v.GameID}">{$v.SocreAmount}</a></td>
  </tr>
  {/volist}
{/empty}
</table>
</div>
<!--/列表-->

<!--内容底部-->
<div class="page-footer"><div class="btn-wrap">{$list->render()}</div></div>
<!--/内容底部-->

</form>
</body>
{/block}